package net.xgclass.online_xgclass.service;

import com.github.pagehelper.PageInfo;
import net.xgclass.online_xgclass.model.entity.User;

import java.util.List;
import java.util.Map;

public interface UserService {

    /**
     * 新增用户
     * @param userInfo
     * @return
     */
    int save(Map<String, String> userInfo);


    String findByPhoneAndPwd(String phone, String pwd);

    User findByUserId(Integer userId);

    String findByUserAndPwd(String name, String pwd);

    List<User> findUser();

    int deleteById(Integer id);

    PageInfo<User> findUser(int pagenum, int pagesize,String byname);

    int addUser(User user);

    int updateById(User user);
}
